package com.fare.taluo.auth.dao.base;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.SequenceGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@SuppressWarnings("serial")
@MappedSuperclass
public abstract class BaseEntity implements Serializable {
	
	/**
	 * 实体id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "FDC_seq_gen")
	@SequenceGenerator(name = "FDC_seq_gen", sequenceName = "FDC_sequence")
	protected Long ids;

	/**
	 * 创建者ID
	 */
	@Column(name="creatorUserIds",length=19,columnDefinition="number(19)",nullable=true)
	protected Long creatorId;
	/**
	 * 创建者名称
	 */
	@Column(name="creatorUserName",length=128,columnDefinition="VARCHAR2(128)",nullable=true)
	protected String creatorName;
	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(nullable=true,name="createdDate")
	protected Date createdDate;
	
	public Long getIds() {
		return ids;
	}

	public void setIds(Long ids) {
		this.ids = ids;
	}

	public Long getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	
}
